<%- include('../../public/header.html')%>
<div>增加分类</div>
<form action="/admin/articleCate/doEdit" method="post">
    <input type="hidden" name="id" value="<%= list._id%>">
    <ul>
        <li>
            <span>分类名称</span>
            <input type="text" name="title" value="<%=list.title%>">
        </li>
        <li>
            <span>上级分类</span>
            <select name="pid">
                <option value="0"  <%if(list.pid==0){%> selected<%}%>>顶级分类</option>
                <%for(var i =0;i<topCateList.length; i++){%>
                    <option <% if(list.pid.toString()== topCateList[i]._id.toString() ){%>selected <%}%> value="<%=topCateList[i]._id%>"> <%=topCateList[i].title%> </option>
                <%}%>
            </select>
        </li>
        <li>
            <span>跳转地址</span>
            <input type="text" name="link" value="<%=list.link%>">
        </li>
        <li>
            <span>seo标题</span>
            <input type="text" name="sub_title" value="<%=list.sub_title%>">
        </li>
        <li>
            <span>seo关键词</span>
            <input type="text" name="keywords" value="<%=list.keywords%>">
        </li>
        <li>
            <span>seo描述</span>
            <textarea name="description" id="" cols="30" rows="10" ><%=list.description%></textarea>
        </li>
        <li>
            <span>排序</span>
            <input type="text" name="sort" value="<%=list.sort%>">
        </li>
        <li>
            <span>状态</span>
            <label for="x">显示</label>
            <input type="radio" id="x" name="status" value="1" <%if(list.status==1){%> checked <%}%>>
            <label for="nx">隐藏</label>
            <input type="radio" id="nx" name="status" value="0" <%if(list.status==0){%> checked <%}%>>
        </li>
        <li>
            <button type="submit">提交</button>
        </li>
    </ul>
</form>
</body>
</html>